package 反射;

public class Student {
    static String tall = "1088";
    private int age;
    public String name;
    String sex;

    public Student() {
        System.out.println("无参构造");
    }

    private Student(int age) {
        this.age = age;
        System.out.println("有参构造");
    }

    private void fun(){
        System.out.println("私有方法");
    }
    public static void func(String ms){
        System.out.println(ms);
    }

    Student(int age, String name, String sex) {
        this.age = age;
        this.name = name;
        this.sex = sex;
        System.out.println("三个参数的有参构造");
    }

    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }
}
